package com.example.zselasticsearchsf.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.ui.Model;

import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @Author: Steven
 * @Date: 2021/11/4 7:22
 */

@Getter
@Setter
@ApiModel(value = "案例管理")
@TableName(value = "SF_CASE_INFO")
@SuppressWarnings("serial")
public class CaseInfoBean  implements Serializable {

    @TableId(value = "`CASE_ID`")
    @Size(max=50,message = "标识符，字符长度不能大于{max}")
    @ApiModelProperty(value = "标识符，", example = "" , required = true)
    private String caseId;

    @TableField(value = "`CASE_TITLE`")
    @Size(max=200,message = "标题，字符长度不能大于{max}")
    @ApiModelProperty(value = "标题，", example = "" , required = true)
    private String caseTitle;

    @TableField(value = "`TYPE_ID`")
    @Size(max=50,message = "业务类型，字符长度不能大于{max}")
    @ApiModelProperty(value = "业务类型，SF_CASE_BUSINESS_TYPE.TYPE_ID", example = "" , required = true)
    private String typeId;

    @TableField(value = "`COLUMN_ID`")
    @Size(max=50,message = "所属栏目，字符长度不能大于{max}")
    @ApiModelProperty(value = "所属栏目，SF_CASE_COLUMN.COLUMN_ID", example = "" , required = true)
    private String columnId;

    @TableField(value = "`TEXT_TYPE`")
    @Size(max=10,message = "文本类型，字符长度不能大于{max}")
    @ApiModelProperty(value = "文本类型，数据字典：WBLX", example = "" , required = true)
    private String textType;

    @TableField(value = "`SOURCE`")
    @Size(max=50,message = "来源，字符长度不能大于{max}")
    @ApiModelProperty(value = "来源，", example = "" )
    private String source;

    @TableField(value = "`AUTHOR`")
    @Size(max=50,message = "作者，字符长度不能大于{max}")
    @ApiModelProperty(value = "作者，", example = "" )
    private String author;

    @TableField(value = "`SYBIOSIS`")
    @Size(max=500,message = "简介，字符长度不能大于{max}")
    @ApiModelProperty(value = "简介，", example = "" )
    private String sybiosis;

    @TableField(value = "`CONTEXT`")
//    @Size(max=200,message = "内容，字符长度不能大于{max}")
    @ApiModelProperty(value = "内容，", example = "" )
    private String context;

    @TableField(value = "`UPLOAD_DEPT_ID`")
    @Size(max=32,message = "上传部门，字符长度不能大于{max}")
    @ApiModelProperty(value = "上传部门，", example = "" )
    private String uploadDeptId;

    @TableField(value = "`UPLOAD_DATE`")
    @Size(max=14,message = "上传时间，字符长度不能大于{max}")
    @ApiModelProperty(value = "上传时间，", example = "" )
    private String uploadDate;

    @TableField(value = "`IS_PUBLISH`")
    @Size(max=1,message = "是否发布，字符长度不能大于{max}")
    @ApiModelProperty(value = "是否发布，0：否；1：是", example = "" , required = true)
    private String isPublish;

    @TableField(value = "`PUBLISH_DATE`")
    @Size(max=14,message = "发布时间，字符长度不能大于{max}")
    @ApiModelProperty(value = "发布时间，", example = "" )
    private String publishDate;

    @TableField(value = "`PUBLISH_HAIR`")
    @Size(max=50,message = "发布人，字符长度不能大于{max}")
    @ApiModelProperty(value = "发布人，", example = "" )
    private String publishHair;

    @TableField(value = "`APPROVE_START`")
    @Size(max=10,message = "审核状态，字符长度不能大于{max}")
    @ApiModelProperty(value = "审核状态，数据字典：SHZT", example = "" , required = true)
    private String approveStart;

    @TableField(value = "`APPROVER`")
    @Size(max=32,message = "审核人，字符长度不能大于{max}")
    @ApiModelProperty(value = "审核人，", example = "" )
    private String approver;

    @TableField(value = "`APPROVE_DATE`")
    @Size(max=14,message = "审核时间，字符长度不能大于{max}")
    @ApiModelProperty(value = "审核时间，", example = "" )
    private String approveDate;

    @TableField(value = "`KEYWORD`")
    @Size(max=100,message = "关键字，字符长度不能大于{max}")
    @ApiModelProperty(value = "关键字，", example = "" , required = true)
    private String keyword;

    @TableField(value = "`IS_TOPPING`")
    @Size(max=1,message = "是否置顶，字符长度不能大于{max}")
    @ApiModelProperty(value = "是否置顶，0：否；1：是", example = "" , required = true)
    private String isTopping;

    @TableField(exist = false)
    @ApiModelProperty(value = "缩略图字段", example = "")
    private String thumbnail;

    @TableField(exist = false)
    @ApiModelProperty(value = "音频文件列表", example = "")
    private String annex;

    @TableField(exist = false)
    @ApiModelProperty(value = "视频文件列表", example = "")
    private String annex1;



}